package com.leha.mp.core.services;

import org.springframework.web.socket.WebSocketSession;

public interface PushServices {
    Boolean UserEnter(Integer uid, WebSocketSession session);
    Boolean DoctorEnter(Integer did, WebSocketSession session);
    Boolean userDisconnect(String sessionId);
    Boolean UserLeave(Integer uid);
    Boolean DoctorLeave(Integer did);
    Boolean SendMessageToDoctor(Integer did, String msgContent);
    Boolean SendMessageToUser(Integer uid, String msgContent);

    Boolean SendMessageToUserWithMp(Integer uid, String msgContent);
    Boolean SendMessageToUserWithMp(String unionId, String msgContent);
}
